import request from '../utils/request1'
import { request as requestFile } from '../utils/requestFile'
export function gethistoryFault(data) {
  return request({
    url: '/cv/faultAnalysis/historyFault',
    method: 'post',
    data
  })
}
export function getisIgnore(id, time) {
  return request({
    url: '/cv/faultAnalysis/isIgnore',
    method: 'post',
    data: {
      eventId: id,
      time: time
    }
  })
}

export function getmodifyFault(data) {
  return request({
    url: '/cv/faultAnalysis/modifyFault',
    method: 'post',
    data
  })
}

export function getaddFault(data) {
  return request({
    url: '/cv/faultAnalysis/addFault',
    method: 'post',
    data
  })
}

export function getrealMonitor(valvehallId) {
  return request({
    url: '/cv/faultAnalysis/realMonitor',
    method: 'post',
    data: {
      valvehallId
    }
  })
}

